//
//  Car_Cell.m
//  car
//
//  Created by chenxu on 15/3/18.
//  Copyright (c) 2015年 chenxu. All rights reserved.
//

#import "Car_Cell.h"

@implementation Car_Cell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)configWithCar:(Car*)car{
    if (car) {
        _car = car;
        _chehao.text = _car.Carid;
        _changpai.text = _car.Carpinpai;
        _chekuan.text = _car.Carxinghao;
        _dengji.text = _car.Carbuydate;;
    }
}

- (void)layoutSubviews{
    [super layoutSubviews];

}

- (IBAction)modify:(UIButton *)sender{
    if(_buttonClicked){
        _buttonClicked(_car);
    }
}
//
//+ (float)cellheight{
//    return [_]
//}

@end
